/* 任务执行信息组件样式 */

.task-execution-info {
  margin-bottom: 16px;
}

.execution-status-card {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: none;
  transition: all 0.3s ease;
  padding: 16px;
}

.execution-status-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.status-header {
  margin-bottom: 8px;
}

.progress-section {
  margin: 8px 0;
}

.time-info {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.task-config-card,
.task-info-card {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: none;
  transition: all 0.3s ease;
  height: 100%;
}

.task-config-card .ant-card-body,
.task-info-card .ant-card-body {
  padding: 12px 16px !important;
}

.task-config-card .ant-descriptions,
.task-info-card .ant-descriptions {
  margin-bottom: 0 !important;
}

.task-config-card .ant-descriptions-item,
.task-info-card .ant-descriptions-item {
  padding-bottom: 4px !important;
  margin-bottom: 0 !important;
}

.task-config-card .ant-descriptions-item:last-child,
.task-info-card .ant-descriptions-item:last-child {
  padding-bottom: 0 !important;
}

.task-config-card:hover,
.task-info-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* 统一任务配置卡片和任务信息卡片的标签样式 */
.task-config-card .ant-descriptions-item-label,
.task-info-card .ant-descriptions-item-label {
  font-weight: 500;
  color: #000000;
  width: 90px !important;
  min-width: 90px !important;
  max-width: 90px !important;
  text-align: left !important;
  padding-right: 12px !important;
  vertical-align: middle !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-config-card .ant-descriptions-item-content,
.task-info-card .ant-descriptions-item-content {
  color: #262626;
  text-align: left !important;
  vertical-align: middle !important;
  word-break: break-word;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

/* 任务信息卡片的行间距 */
.task-info-card .ant-descriptions-item {
  padding-bottom: 6px !important;
  margin-bottom: 2px !important;
}

/* 任务信息卡片中额外的行高调整 */
.task-info-card .ant-descriptions-item-content {
  line-height: 1.4 !important;
}

/* Tag 样式增强 */
.task-execution-info .ant-tag {
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px;
}

/* Avatar 样式 */
.task-execution-info .ant-avatar {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Progress 样式 */
.task-execution-info .ant-progress-circle .ant-progress-text {
  font-weight: 600;
  font-size: 14px;
}

/* Descriptions 优化 */
.task-execution-info .ant-descriptions-item {
  padding-bottom: 6px;
}

.task-execution-info .ant-descriptions-item:last-child {
  padding-bottom: 0;
}

/* 压缩状态卡片内容间距 */
.execution-status-card .ant-avatar {
  margin-bottom: 8px;
}

.execution-status-card .ant-typography {
  margin-bottom: 4px;
}

.execution-status-card .ant-typography:last-child {
  margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .task-execution-info .ant-col {
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  .task-execution-info {
    margin-bottom: 16px;
  }
  
  .execution-status-card,
  .task-config-card,
  .task-info-card {
    margin-bottom: 16px;
  }
  
  .task-execution-info .ant-descriptions-item-label {
    width: 70px;
    font-size: 12px;
  }
  
  .task-execution-info .ant-descriptions-item-content {
    font-size: 12px;
  }
  
  .status-header .ant-typography {
    font-size: 16px;
  }
  
  .task-execution-info .ant-avatar {
    width: 48px;
    height: 48px;
  }
}

/* 动画效果 */
@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 144, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(24, 144, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(24, 144, 255, 0);
  }
}

.execution-status-card .ant-avatar[style*="rgb(24, 144, 255)"] {
  animation: statusPulse 2s infinite;
}

/* 卡片头部样式 */
.task-config-card .ant-card-head,
.task-info-card .ant-card-head {
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 16px 6px;
  min-height: auto;
}

.task-config-card .ant-card-head-title,
.task-info-card .ant-card-head-title {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
}

/* 错误状态样式 */
.task-execution-info .ant-descriptions-item-content .ant-typography[class*="danger"] {
  background: #fff2f0;
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 3px solid #ff4d4f;
  line-height: 1.4;
}

/* 代码样式 */
.task-execution-info .ant-typography code {
  background: #f6f8fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

/* Space 间距优化 */
.task-execution-info .ant-space-item {
  display: flex;
  align-items: center;
}